﻿<?php
include("../inc/global.inc");
include("../islogin.php");
if($_POST[act]){
        $c_rs=@mysql_query("select * from city where id='$_POST[c_provinces]' and city_id=0");
		$c_row=@mysql_fetch_array($c_rs);
		$c_rs2=@mysql_query("select * from city where id='$_POST[c_city]' and city_id>0");
		$c_row2=@mysql_fetch_array($c_rs2);
		
		$c_rs3=@mysql_query("select * from city where id='$_POST[c_provinces3]' and city_id=0");
		$c_row3=@mysql_fetch_array($c_rs3);
		$c_rs4=@mysql_query("select * from city where id='$_POST[c_city3]' and city_id>0");
		$c_row4=@mysql_fetch_array($c_rs4);
		
		$qw_rs=@mysql_query("select * from city where id='$_POST[c_provinces4]'");
		$qw_row=@mysql_fetch_array($qw_rs);
		$qw_rs2=@mysql_query("select * from city where id='$_POST[c_city4]'");
		$qw_row2=@mysql_fetch_array($qw_rs2);
		$qw_rs3=@mysql_query("select * from city where id='$_POST[c_diqu4]'");
		$qw_row3=@mysql_fetch_array($qw_rs3);
		
		$p_qw_pro_id=$_POST[c_provinces4]?$_POST[c_provinces4]:0;
		$p_qw_city_id=$_POST[c_city4]?$_POST[c_city4]:0;
		$p_qw_dq_id=$_POST[c_diqu4]?$_POST[c_diqu4]:0;
		
for($i=0;$i<=count($_POST[toBox]);$i++){
$toBox=$toBox.$_POST[toBox][$i]."@"; 
}

for($j=0;$j<=count($_POST[toBox2]);$j++){
$toBox2=$toBox2.$_POST[toBox2][$j]."@"; 
}



@mysql_query("update job_per set p_name='$_POST[p_name]',p_sex='$_POST[p_sex]',p_height='$_POST[p_height]',p_married='$_POST[p_married]',p_nation='$_POST[p_nation]',p_birth_y='$_POST[p_birth_y]',p_birth_m='$_POST[p_birth_m]',p_birth_d='$_POST[p_birth_d]',p_hukou_pro='$_POST[c_provinces]',p_hukou_pro2='$c_row[city_name]',p_hukou_city='$_POST[c_city]',p_hukou_city2='$c_row2[city_name]',p_pro='$_POST[c_provinces3]',p_pro2='$c_row3[city_name]',p_city='$_POST[c_city]',p_city2='$c_row4[city_name]',p_address='$_POST[p_address]',p_post='$_POST[p_post]',p_tel='$_POST[tel_qh]-$_POST[tel_hm]',p_phone='$_POST[p_phone]',p_edu='$_POST[p_edu]',p_exp='$_POST[p_exp]',p_salary='$_POST[p_salary]',p_comment='$_POST[p_comment]',p_nature='$_POST[p_nature]',p_qw_pro_id='$p_qw_pro_id',p_qw_pro='$qw_row[city_name]',p_qw_city_id='$p_qw_city_id',p_qw_city='$qw_row2[city_name]',p_qw_dq_id='$p_qw_dq_id',p_qw_dq='$qw_row3[city_name]',p_hy='$toBox',p_class='$toBox2',p_expected_salary='$_POST[p_expected_salary]',p_status='$_POST[p_status]',p_lan='$_POST[p_lan]',p_isopen='$_POST[isopen]',p_edittime='".date("y-m-d H:i:s")."',p_step='1' where id='$_COOKIE[job_user_id]'");


echo "<script>location='index_3.php'</script>";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人信息-简历中心-三帝招聘网</title>
<link href="../css/body.css" rel="stylesheet" type="text/css" />
<link href="../css/link.css" rel="stylesheet" type="text/css" />
<link href="../css/head_2.css" rel="stylesheet" type="text/css" />
<link href="../css/foot.css" rel="stylesheet" type="text/css" />
<link href="../css/reg.css" rel="stylesheet" type="text/css" />
<script src="http://www.sandib2b.cn/js/city.js" type="text/javascript" charset="gb2312"></script>
<script src="../js/select.js" type="text/javascript" charset="gb2312"></script>
 <style type="text/css">
 .multipleSelectBoxControl span{ /* Labels above select boxes*/
  font-family:arial;
  font-size:11px;
  font-weight:bold;
 }
 .multipleSelectBoxControl div select{ /* Select box layout */
  font-family:arial;
  height:100%;
 }
 .multipleSelectBoxControl input{ /* Small butons */
  width:25px; 
 }
 
 .multipleSelectBoxControl div{
  float:left;
 }
  
 .multipleSelectBoxDiv
 </style>
</head>
<body>
<?php include("../inc/top_3.php"); ?>
<div class="onl"></div>
<div id="mian" class="topside6 sideyellow1">
<?php $p_rs=@mysql_query("select * from job_per where id='$_COOKIE[job_user_id]'");
      $p_row=@mysql_fetch_array($p_rs);
?>
<FORM id="form1" name="form1" onSubmit="return multipleSelectOnSubmit();" action="" method="post" >
<div class="title3 size12">请认真、仔细地填写以下信息，有助于你获得招聘单位录取。</div>
<table width="761" height="110" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="/reg/index_2.php"><img src="images/reg1.gif" width="185" height="84" border="0" /></a></td>
    <td><a href="/reg/index_3.php"><img src="images/reg22.gif" width="185" height="84" border="0" /></a></td>
    <td><a href="/reg/index_4.php"><img src="images/reg33.gif" width="185" height="84" border="0" /></a></td>
    <td><a href="/reg/success.php"><img src="images/reg44.gif" width="185" height="84" border="0" /></a></td>
  </tr>
</table>

<div class="content size14">
<div class="title2 b">基本个人信息（<span class="StarRed">*</span>为必填项）<a name="1" id="1"></a></div>
  <table width="100%" height="434" border="0" cellpadding="0" cellspacing="0" class="table">
    <tbody>
      <tr>
        <td height="14" align="right" bgcolor="#F4F4F0" ><span class="StarRed">*</span> 姓　　名</td>
        <td height="14" colspan="2" bgcolor="#F4F4F0" ><input name="p_name" type="text" class="input1" id="p_name" value="<?=$p_row[p_name]?>" size="35" /></td>
        </tr>
      <tr>
        <td width="151" height="28" align="right" ><span class="StarRed">*</span> 性　　别</td>
        <td height="28" colspan="2" ><input type="radio" value="2" name="p_sex" <?php if($p_row[p_sex]==2){echo "checked";}?>/>男<input type="radio" value="3" name="p_sex" <?php if($p_row[p_sex]==3){echo "checked";}?>/>女</td>
        </tr>
      <tr>
        <td height="28" align="right" bgcolor="#F4F4F0" >身　　高</td>
        <td height="28" colspan="2" bgcolor="#F4F4F0" ><input name="p_height" class="input1" id="p_height" size="35" value="<?=$p_row[p_height]?>"/>cm</td>
        </tr>
      <tr>
        <td height="28" align="right" ><span class="StarRed">*</span> 婚姻状况</td>
        <td height="28" colspan="2" ><input type="radio" value="1" name="p_married"  <?php if($p_row[p_married]==1){echo "checked";}?>/>已婚<input type="radio" value="2" name="p_married" <?php if($p_row[p_married]==2){echo "checked";}?>/>未婚</td>
        </tr>
      <tr>
        <td height="28" align="right" bgcolor="#F4F4F0" ><span class="StarRed">*</span> 民　　族</td>
        <td height="28" colspan="2" bgcolor="#F4F4F0" >
		<select id="p_nation" style="WIDTH: 90px" name="p_nation">
          <option value="1" <?php if($p_row[p_nation]==1){echo "selected";}?>>汉族</option>
          <option value="2" <?php if($p_row[p_nation]==2){echo "selected";}?>>壮族</option>
          <option value="3" <?php if($p_row[p_nation]==3){echo "selected";}?>>满族</option>
          <option value="4" <?php if($p_row[p_nation]==4){echo "selected";}?>>回族</option>
          <option value="5" <?php if($p_row[p_nation]==5){echo "selected";}?>>苗族</option>
          <option value="6" <?php if($p_row[p_nation]==6){echo "selected";}?>>维吾尔族</option>
          <option value="7" <?php if($p_row[p_nation]==7){echo "selected";}?>>彝族</option>
          <option value="8" <?php if($p_row[p_nation]==8){echo "selected";}?>>土家族</option>
          <option value="9" <?php if($p_row[p_nation]==9){echo "selected";}?>>蒙古族</option>
          <option value="10" <?php if($p_row[p_nation]==10){echo "selected";}?>>藏族</option>
          <option value="11" <?php if($p_row[p_nation]==11){echo "selected";}?>>侗族</option>
          <option value="12" <?php if($p_row[p_nation]==12){echo "selected";}?>>瑶族</option>
          <option value="13" <?php if($p_row[p_nation]==13){echo "selected";}?>>朝鲜族</option>
          <option  value="14" <?php if($p_row[p_nation]==14){echo "selected";}?>>其他民族</option>
        </select></td>
        </tr>
      <tr>
        <td height="28" align="right" ><span class="StarRed">*</span> 出生日期</td>
        <td height="28" colspan="2" >
		<select name="p_birth_y" id="p_birth_y">
		  <option value="1941" <?php if($p_row[p_birth_y]==1941){echo "selected";}?>>1941</option>
		  <option value="1942" <?php if($p_row[p_birth_y]==1942){echo "selected";}?>>1942</option>
		  <option value="1943" <?php if($p_row[p_birth_y]==1943){echo "selected";}?>>1943</option>
		  <option value="1944" <?php if($p_row[p_birth_y]==1944){echo "selected";}?>>1944</option>
		  <option value="1945" <?php if($p_row[p_birth_y]==1945){echo "selected";}?>>1945</option>
		  <option value="1946" <?php if($p_row[p_birth_y]==1946){echo "selected";}?>>1946</option>
		  <option value="1947" <?php if($p_row[p_birth_y]==1947){echo "selected";}?>>1947</option>
		  <option value="1948" <?php if($p_row[p_birth_y]==1948){echo "selected";}?>>1948</option>
		  <option value="1949" <?php if($p_row[p_birth_y]==1949){echo "selected";}?>>1949</option>
		  <option value="1950" <?php if($p_row[p_birth_y]==1950){echo "selected";}?>>1950</option>
		  <option value="1951" <?php if($p_row[p_birth_y]==1951){echo "selected";}?>>1951</option>
		  <option value="1952" <?php if($p_row[p_birth_y]==1952){echo "selected";}?>>1952</option>
		  <option value="1953" <?php if($p_row[p_birth_y]==1953){echo "selected";}?>>1953</option>
		  <option value="1954" <?php if($p_row[p_birth_y]==1954){echo "selected";}?>>1954</option>
		  <option value="1955" <?php if($p_row[p_birth_y]==1955){echo "selected";}?>>1955</option>
		  <option value="1956" <?php if($p_row[p_birth_y]==1956){echo "selected";}?>>1956</option>
		  <option value="1957" <?php if($p_row[p_birth_y]==1957){echo "selected";}?>>1957</option>
		  <option value="1958" <?php if($p_row[p_birth_y]==1958){echo "selected";}?>>1958</option>
		  <option value="1959" <?php if($p_row[p_birth_y]==1959){echo "selected";}?>>1959</option>
		  <option value="1960" <?php if($p_row[p_birth_y]==1961){echo "selected";}?>>1960</option>
		  <option value="1961" <?php if($p_row[p_birth_y]==1962){echo "selected";}?>>1961</option>
		  <option value="1962" <?php if($p_row[p_birth_y]==1962){echo "selected";}?>>1962</option>
		  <option value="1963" <?php if($p_row[p_birth_y]==1963){echo "selected";}?>>1963</option>
		  <option value="1964" <?php if($p_row[p_birth_y]==1941){echo "selected";}?>>1964</option>
		  <option value="1965" <?php if($p_row[p_birth_y]==1965){echo "selected";}?>>1965</option>
		  <option value="1966" <?php if($p_row[p_birth_y]==1966){echo "selected";}?>>1966</option>
		  <option value="1967" <?php if($p_row[p_birth_y]==1967){echo "selected";}?>>1967</option>
		  <option value="1968" <?php if($p_row[p_birth_y]==1968){echo "selected";}?>>1968</option>
		  <option value="1969" <?php if($p_row[p_birth_y]==1969){echo "selected";}?>>1969</option>
		  <option value="1970" <?php if($p_row[p_birth_y]==1970){echo "selected";}?>>1970</option>
		  <option value="1971" <?php if($p_row[p_birth_y]==1971){echo "selected";}?>>1971</option>
		  <option value="1972" <?php if($p_row[p_birth_y]==1972){echo "selected";}?>>1972</option>
		  <option value="1973" <?php if($p_row[p_birth_y]==1973){echo "selected";}?>>1973</option>
		  <option value="1974" <?php if($p_row[p_birth_y]==1974){echo "selected";}?>>1974</option>
		  <option value="1975" <?php if($p_row[p_birth_y]==1975){echo "selected";}?>>1975</option>
		  <option value="1976" <?php if($p_row[p_birth_y]==1976){echo "selected";}?>>1976</option>
		  <option value="1977" <?php if($p_row[p_birth_y]==1978){echo "selected";}?>>1977</option>
		  <option value="1978" <?php if($p_row[p_birth_y]==1978){echo "selected";}?>>1978</option>
		  <option value="1979" <?php if($p_row[p_birth_y]==1979){echo "selected";}?>>1979</option>
		  <option value="1980" <?php if($p_row[p_birth_y]==1980){echo "selected";}?>>1980</option>
		  <option value="1981" <?php if($p_row[p_birth_y]==1981){echo "selected";}?>>1981</option>
		  <option value="1982" <?php if($p_row[p_birth_y]==1982){echo "selected";}?>>1982</option>
		  <option value="1983" <?php if($p_row[p_birth_y]==1983){echo "selected";}?>>1983</option>
		  <option value="1984" <?php if($p_row[p_birth_y]==1984){echo "selected";}?>>1984</option>
		  <option value="1985" <?php if($p_row[p_birth_y]==1985){echo "selected";}?>>1985</option>
		  <option value="1986" <?php if($p_row[p_birth_y]==1986){echo "selected";}?>>1986</option>
		  <option value="1987" <?php if($p_row[p_birth_y]==1987){echo "selected";}?>>1987</option>
		  <option value="1988" <?php if($p_row[p_birth_y]==1988){echo "selected";}?>>1988</option>
		  <option value="1989" <?php if($p_row[p_birth_y]==1941){echo "selected";}?>>1989</option>
		  <option value="1990" <?php if($p_row[p_birth_y]==1990){echo "selected";}?>>1990</option>
		  <option value="1991" <?php if($p_row[p_birth_y]==1991){echo "selected";}?>>1991</option>
		  <option value="1992" <?php if($p_row[p_birth_y]==1992){echo "selected";}?>>1992</option>
		  <option value="1993" <?php if($p_row[p_birth_y]==1993){echo "selected";}?>>1993</option>
		  <option value="1994" <?php if($p_row[p_birth_y]==1994){echo "selected";}?>>1994</option>
		</select>年
       <select name="p_birth_m" id="p_birth_m">
		   <option value="1" <?php if($p_row[p_birth_m]==1){echo "selected";}?>>1</option>
		   <option value="2" <?php if($p_row[p_birth_m]==2){echo "selected";}?>>2</option>
		   <option value="3" <?php if($p_row[p_birth_m]==3){echo "selected";}?>>3</option>
		   <option value="4" <?php if($p_row[p_birth_m]==4){echo "selected";}?>>4</option>
		   <option value="5" <?php if($p_row[p_birth_m]==5){echo "selected";}?>>5</option>
		   <option value="6" <?php if($p_row[p_birth_m]==6){echo "selected";}?>>6</option>
		   <option value="7" <?php if($p_row[p_birth_m]==7){echo "selected";}?>>7</option>
		   <option value="8" <?php if($p_row[p_birth_m]==8){echo "selected";}?>>8</option>
		   <option value="9" <?php if($p_row[p_birth_m]==9){echo "selected";}?>>9</option>
		   <option value="10" <?php if($p_row[p_birth_m]==10){echo "selected";}?>>10</option>
		   <option value="11" <?php if($p_row[p_birth_m]==11){echo "selected";}?>>11</option>
		   <option value="12" <?php if($p_row[p_birth_m]==12){echo "selected";}?>>12</option>
		   </select>月
		   <select name="p_birth_d" id="p_birth_d">
             <option value="1" <?php if($p_row[p_birth_d]==1){echo "selected";}?>>1</option>
             <option value="2" <?php if($p_row[p_birth_d]==2){echo "selected";}?>>2</option>
             <option value="3" <?php if($p_row[p_birth_d]==3){echo "selected";}?>>3</option>
             <option value="4" <?php if($p_row[p_birth_d]==4){echo "selected";}?>>4</option>
             <option value="5" <?php if($p_row[p_birth_d]==5){echo "selected";}?>>5</option>
             <option value="6" <?php if($p_row[p_birth_d]==6){echo "selected";}?>>6</option>
             <option value="7" <?php if($p_row[p_birth_d]==7){echo "selected";}?>>7</option>
             <option value="8" <?php if($p_row[p_birth_d]==8){echo "selected";}?>>8</option>
             <option value="9" <?php if($p_row[p_birth_d]==9){echo "selected";}?>>9</option>
             <option value="10" <?php if($p_row[p_birth_d]==10){echo "selected";}?>>10</option>
             <option value="11" <?php if($p_row[p_birth_d]==11){echo "selected";}?>>11</option>
             <option value="12" <?php if($p_row[p_birth_d]==12){echo "selected";}?>>12</option>
             <option value="13" <?php if($p_row[p_birth_d]==13){echo "selected";}?>>13</option>
             <option value="14" <?php if($p_row[p_birth_d]==14){echo "selected";}?>>14</option>
             <option value="15" <?php if($p_row[p_birth_d]==15){echo "selected";}?>>15</option>
             <option value="16" <?php if($p_row[p_birth_d]==16){echo "selected";}?>>16</option>
             <option value="17" <?php if($p_row[p_birth_d]==17){echo "selected";}?>>17</option>
             <option value="18" <?php if($p_row[p_birth_d]==18){echo "selected";}?>>18</option>
             <option value="19" <?php if($p_row[p_birth_d]==19){echo "selected";}?>>19</option>
             <option value="20" <?php if($p_row[p_birth_d]==20){echo "selected";}?>>20</option>
             <option value="21" <?php if($p_row[p_birth_d]==21){echo "selected";}?>>21</option>
             <option value="22" <?php if($p_row[p_birth_d]==22){echo "selected";}?>>22</option>
             <option value="23" <?php if($p_row[p_birth_d]==23){echo "selected";}?>>23</option>
             <option value="24" <?php if($p_row[p_birth_d]==24){echo "selected";}?>>24</option>
             <option value="25" <?php if($p_row[p_birth_d]==25){echo "selected";}?>>25</option>
             <option value="26" <?php if($p_row[p_birth_d]==26){echo "selected";}?>>26</option>
             <option value="27" <?php if($p_row[p_birth_d]==27){echo "selected";}?>>27</option>
             <option value="28" <?php if($p_row[p_birth_d]==28){echo "selected";}?>>28</option>
             <option value="29" <?php if($p_row[p_birth_d]==29){echo "selected";}?>>29</option>
             <option value="30" <?php if($p_row[p_birth_d]==30){echo "selected";}?>>30</option>
             <option value="31" <?php if($p_row[p_birth_d]==31){echo "selected";}?>>31</option>
           </select>日</td>
        </tr>
      <tr>
        <td height="28" align="right" bgcolor="#F4F4F0" ><span class="StarRed">*</span> 户口所在地</td>
        <td height="28" colspan="2" bgcolor="#F4F4F0" ><select  name="c_provinces" id="c_provinces" onChange="changecity(document.form1.c_provinces.options[document.form1.c_provinces.selectedIndex].value)" style="width:76px;">
            <option value="">省份</option>
          <?php
          $result = mysql_query("select * from city where city_id=0");    
          while($res = mysql_fetch_array($result)){    
          ?>    
          <option value="<?=$res['id']?>" <?php if($p_row[p_hukou_pro]==$res[id]){echo "selected";}?>><?=$res['city_name']?></option> 
          <?php }?>   
       </select>
	   <select name="c_city" id="c_city" style="width:76px;">
            <option value="">城市</option>
			<?php  if($p_row[p_hukou_pro]){
			      $rs=@mysql_query("select * from city where city_id='$p_row[p_hukou_pro]'");
				  while($row=@mysql_fetch_array($rs)){?>
			 <option value="<?=$row['id']?>" <?php if($row['id']==$p_row[p_hukou_city]){echo "selected";}?>><?=$row[city_name]?></option>
			<?php }}?>
       </select></td>
      </tr>
      <tr>
        <td height="28" align="right" ><span class="StarRed">*</span> 现居住地</td>
        <td height="28" colspan="2" ><select  name="c_provinces3" id="c_provinces3" onChange="changecity3(document.form1.c_provinces3.options[document.form1.c_provinces3.selectedIndex].value)" style="width:76px;">
            <option value="">省份</option>
          <?php
          $result = mysql_query("select * from city where city_id=0");    
          while($res = mysql_fetch_array($result)){    
          ?>    
          <option value="<?=$res['id']?>" <?php if($p_row[p_pro]==$res[id]){echo "selected";}?>><?=$res['city_name']?></option> 
          <?php }?>   
       </select>
	   <select name="c_city3" id="c_city3" style="width:76px;">
            <option value="">城市</option>
			<?php if($p_row[p_pro]){
			      $rs=@mysql_query("select * from city where city_id='$p_row[p_pro]'");
				  while($row=@mysql_fetch_array($rs)){?>
			 <option value="<?=$row['id']?>" <?php if($row['id']==$p_row[p_city]){echo "selected";}?>><?=$row[city_name]?></option>
			<?php }}?>
       </select></td>
      </tr>
      <tr>
        <td height="28" align="right" bgcolor="#F4F4F0" ><span class="StarRed">*</span> 住　　址</td>
        <td height="28" colspan="2" bgcolor="#F4F4F0" ><input name="p_address" type="text" class="input" value="<?=$p_row[p_address]?>" id="p_address" size="35" /></td>
        </tr>
      <tr>
        <td height="28" align="right" >邮　　编</td>
        <td height="28" colspan="2" ><input name="p_post" type="text" class="input1" id="p_post" size="35" value="<?=$p_row[p_post]?>" /></td>
        </tr>
      <tr><?php $tel=split("-",$p_row[p_tel])?>
        <td height="28" align="right" bgcolor="#F4F4F0" >固定电话</td>
        <td height="28" colspan="2" bgcolor="#F4F4F0" > &nbsp;区号　 － 　电话号码　-　<span 
            class="z_hui">(非必填)</span><br /><input class="input2" maxlength="5" size="3" name="tel_qh" id="tel_qh" value="<?=$tel[0]?>" /> - <input class="input1" maxlength="28" size="8" name="tel_hm" id="tel_hm"  value="<?=$tel[1]?>"/></td>
        </tr>
      <tr>
        <td height="28" align="right" ><span class="StarRed">*</span> 移动电话</td>
        <td height="28" colspan="2" ><input name="p_phone" type="text" class="input1" id="p_phone" size="35"  value="<?=$p_row[p_phone]?>"/></td>
        </tr>
      <tr>
        <td height="28" align="right" bgcolor="#F4F4F0" >学　　历</td>
        <td width="324" height="28" bgcolor="#F4F4F0" ><select id="p_edu" style="WIDTH: 180px" name="p_edu">
          <option value="1">请选择</option>
		  <option value="2" <?php if($p_row[p_edu]==2){echo "selected";}?>>高中及高中以下</option>
          <option value="3" <?php if($p_row[p_edu]==3){echo "selected";}?>>技校</option>
		  <option value="4" <?php if($p_row[p_edu]==4){echo "selected";}?>>中专</option>
		  <option value="5" <?php if($p_row[p_edu]==5){echo "selected";}?>>大专</option>
          <option value="6" <?php if($p_row[p_edu]==6){echo "selected";}?>>本科</option>
          <option value="7" <?php if($p_row[p_edu]==7){echo "selected";}?>>硕士</option>
          <option value="8" <?php if($p_row[p_edu]==8){echo "selected";}?>>博士及以上</option>
        </select></td>
        <td width="283" height="28" bgcolor="#F4F4F0" >&nbsp;</td>
      </tr>
      <tr>
        <td height="28" align="right" >工作经验</td>
        <td height="28" ><select id="p_exp" style="WIDTH: 180px" name="p_exp">
          <option value="1">请选择</option>
          <option value="2" <?php if($p_row[p_exp]==2){echo "selected";}?>>1年以下</option>
          <option value="3" <?php if($p_row[p_exp]==3){echo "selected";}?>>1-2年</option>
          <option value="4" <?php if($p_row[p_exp]==4){echo "selected";}?>>3-5年</option>
          <option value="5" <?php if($p_row[p_exp]==5){echo "selected";}?>>6-7年</option>
          <option value="6" <?php if($p_row[p_exp]==6){echo "selected";}?>>8-10年</option>
		  <option value="7" <?php if($p_row[p_exp]==7){echo "selected";}?>>10年以上</option>
        </select></td>
        <td height="28" >&nbsp;</td>
      </tr>
      <tr>
        <td height="28" align="right" bgcolor="#F4F4F0" >目前待遇</td>
        <td height="28" bgcolor="#F4F4F0" ><select id="p_salary" style="WIDTH: 180px" name="p_salary">
          <option value="1">面谈</option>
              <OPTION value="2" <?php if($p_row[p_salary]==2){echo "selected";}?>>1000元/月以下</OPTION>
              <OPTION value="3" <?php if($p_row[p_salary]==3){echo "selected";}?>>1000-2000元/月</OPTION>
              <OPTION value="4" <?php if($p_row[p_salary]==4){echo "selected";}?>>2001-4000元/月</OPTION>
              <OPTION value="5" <?php if($p_row[p_salary]==5){echo "selected";}?>>4001-6000元/月</OPTION>
              <OPTION value="6" <?php if($p_row[p_salary]==6){echo "selected";}?>>6001-8000元/月</OPTION>
              <OPTION value="7" <?php if($p_row[p_salary]==7){echo "selected";}?>>8001-10000元/月</OPTION>
              <OPTION value="8" <?php if($p_row[p_salary]==8){echo "selected";}?>>10001-15000元/月</OPTION>
              <OPTION value="9" <?php if($p_row[p_salary]==9){echo "selected";}?>>15000-25000元/月</OPTION>
              <OPTION value="10" <?php if($p_row[p_salary]==10){echo "selected";}?>>25000元/月以上</OPTION>
        </select></td>
        <td height="28" bgcolor="#F4F4F0" >&nbsp;</td>
      </tr>
      <tr>
        <td height="28" align="right" >语言能力</td>
        <td height="28" ><input type="text" name="p_lan" id="p_lan" class="input1" value="<?=$p_row[p_lan]?>"/></td>
        <td height="28" >&nbsp;</td>
      </tr>
    </tbody>
  </table>
<div class="title2 b">自我评价（<span class="StarRed">*</span>为必填项）<a name="2" id="2"></a></div>

  <table width="100%" height="112" border="0" cellpadding="0" cellspacing="0" class="table">
    <tbody>

      <tr>
        <td width="20%" align="right" valign="top" bgcolor="#F4F4F0"><br />
          <span class="StarRed">*</span> 自我评价</td>
        <td width="80%" height="112" bgcolor="#F4F4F0"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="5"></td>
            </tr>
        </table>
          <textarea name="p_comment" cols="60" rows="10" id="p_comment"><?=$p_row[p_comment]?></textarea><DIV id=textid>请在上面的输入框内输入您对自己的简短评价或工作阅历。请简明扼要的说明您最大的优势是什么，避免使用一些空洞、老套的话。</DIV></td>
      </tr>
    </tbody>
  </table>
  <div class="title2 b">求职意向（<span class="StarRed">*</span>为必填项）<a name="3" id="3"></a></div>
  <table width="100%" height="182" border="0" cellpadding="0" cellspacing="0" class="table">
    <tbody>
      <tr>
        <td width="20%" height="14" align="right" ><span class="StarRed">*</span> 期望工作性质</td>
        <td width="80%" height="14" >
		<input name="p_nature" type="radio" value="1" <?php if($p_row[p_nature]==1){echo "checked";}?> />
		全职
        <input type="radio" value="2" name="p_nature"  <?php if($p_row[p_nature]==2){echo "checked";}?>/>兼职
        <input type="radio" value="3" name="p_nature"  <?php if($p_row[p_nature]==3){echo "checked";}?>/>实习</td>
        </tr>
      <tr>
        <td height="28" align="right" bgcolor="#F4F4F0" ><span class="StarRed">*</span> 期望工作地区</td>
        <td height="28" bgcolor="#F4F4F0">
		<select  name="c_provinces4" id="c_provinces4" onChange="changecity4(document.form1.c_provinces4.options[document.form1.c_provinces4.selectedIndex].value)">
            <option value="">--选择省份--</option>
          <?php
          $result = mysql_query("select * from city where city_id=0");    
          while($res = mysql_fetch_array($result)){    
          ?>    
          <option value="<?=$res['id']?>" <?php if($p_row[p_qw_pro_id]==$res[id]){echo "selected";}?>><?=$res['city_name']?></option> 
          <?php }?>   
       </select>
       <select name="c_city4" id="c_city4" onChange="changecity5(document.form1.c_city4.options[document.form1.c_city4.selectedIndex].value)">
            <option value="">--选择城市--</option>
			<?php
          $result = mysql_query("select * from city where city_id=$p_row[p_qw_pro_id]");    
          while($res = mysql_fetch_array($result)){    
          ?>    
          <option value="<?=$res['id']?>" <?php if($p_row[p_qw_city_id]==$res[id]){echo "selected";}?>><?=$res['city_name']?></option> 
          <?php }?>
       </select>
	   <select name="c_diqu4" id="c_diqu4">
            <option value="">--选择地区--</option>
			<?php
          $result = mysql_query("select * from city where city_id=$p_row[p_qw_city_id]");    
          while($res = mysql_fetch_array($result)){    
          ?>    
          <option value="<?=$res['id']?>" <?php if($p_row[p_qw_dq_id]==$res[id]){echo "selected";}?>><?=$res['city_name']?></option> 
          <?php }?>
       </select></td>
      </tr>
      <tr>
        <td height="28" align="right" ><span class="StarRed">*</span> 期望工作行业</td>
        <td height="28" >
        <select multiple name="fromBox" id="fromBox">
		<?php
		   $rs=@mysql_query("select * from job_hy where job_hy_id=0");
		   while($row=@mysql_fetch_array($rs)){
		?><option value="<?=$row['id']?>"><?=$row[job_hy_name]?></option>
		<?php }?>
        </select>
		<select multiple name="toBox[]" id="toBox">
		<?php
		  $p_hy=split("@",$p_row[p_hy]);
		  $sqls=" and (";
		  for($i=0;$i<=count($p_hy);$i++){
		      if($p_hy[$i]){
		       $sqls=$sqls." id='$p_hy[$i]'";
			     if($p_hy[$i+1]){
			        $sqls=$sqls." or ";
					}
				}
		  }
		  $sqls=$sqls." )";
		  $rs=@mysql_query("select * from job_hy where job_hy_id=0 ".$sqls." order by id asc");
		  while($row=@mysql_fetch_array($rs)){
		  ?>
           <option value="<?=$row['id']?>"><?=$row[job_hy_name]?></option>
		 <?php }?>
        </select></td>
        </tr>
      <tr>
        <td height="28" align="right" bgcolor="#F4F4F0" ><span class="StarRed">*</span>期望工作职位</td>
        <td height="28" bgcolor="#F4F4F0" >
<select multiple name="fromBox2" id="fromBox2">
<?php
$rs=@mysql_query("select * from job_class  where j_c_id=0");
while($row=@mysql_fetch_array($rs)){
?>
<option value="<?=$row['id']?>"><?=$row[j_c_name]?></option>
<?php }?>
</select>
<select multiple name="toBox2[]" id="toBox2">
        <?php
		  $p_class=split("@",$p_row[p_class]);
		  $sqls=" and (";
		  for($i=0;$i<=count($p_class);$i++){
		      if($p_class[$i]){
		       $sqls=$sqls." id='$p_class[$i]'";
			     if($p_class[$i+1]){
			        $sqls=$sqls." or ";
					}
				}
		  }
		  $sqls=$sqls." )";
		  $rs=@mysql_query("select * from job_class where j_c_id=0 ".$sqls." order by id asc");
		  while($row=@mysql_fetch_array($rs)){
		  ?>
           <option value="<?=$row['id']?>"><?=$row[j_c_name]?></option>
		 <?php }?>
</select>
<script type="text/javascript">
createMovableOptions("fromBox","toBox",500,300,'','');
createMovableOptions("fromBox2","toBox2",500,300,'','');
</script>
</td>
        </tr>
      <tr>
        <td height="28" align="right" >期望月薪</td>
        <td height="28" >
		<select id="p_expected_salary" style="WIDTH: 150px" name="p_expected_salary">
              <option value="1">面谈</option>
              <OPTION value="2" <?php if($p_row[p_expected_salary]==2){echo "selected";}?>>1000元/月以下</OPTION>
              <OPTION value="3" <?php if($p_row[p_expected_salary]==3){echo "selected";}?>>1000-2000元/月</OPTION>
              <OPTION value="4" <?php if($p_row[p_expected_salary]==4){echo "selected";}?>>2001-4000元/月</OPTION>
              <OPTION value="5" <?php if($p_row[p_expected_salary]==5){echo "selected";}?>>4001-6000元/月</OPTION>
              <OPTION value="6" <?php if($p_row[p_expected_salary]==6){echo "selected";}?>>6001-8000元/月</OPTION>
              <OPTION value="7" <?php if($p_row[p_expected_salary]==7){echo "selected";}?>>8001-10000元/月</OPTION>
              <OPTION value="8" <?php if($p_row[p_expected_salary]==8){echo "selected";}?>>10001-15000元/月</OPTION>
              <OPTION value="9" <?php if($p_row[p_expected_salary]==9){echo "selected";}?>>15000-25000元/月</OPTION>
              <OPTION value="10" <?php if($p_row[p_expected_salary]==10){echo "selected";}?>>25000元/月以上</OPTION>
        </select>元/月
<div class="alr" id="hopesalaryid" style="DISPLAY: none"></div></td>
        </tr>
      <tr>
        <td height="28" align="right" bgcolor="#F4F4F0" ><span class="StarRed">*</span>当前工作状况</td>
        <td height="28" bgcolor="#F4F4F0" >
<input type="radio" value="1" name="p_status" <?php if($p_row[p_status]==1){echo "checked";}?> />目前我处于离职状态，可随时上岗。 <br />
<input type="radio" value="2" name="p_status" <?php if($p_row[p_status]==2){echo "checked";}?>/>我目前在职，正考虑换个新工作（如有合适的工作机会，到岗时间一个月左右） <br />
<input type="radio" value="3"  name="p_status" <?php if($p_row[p_status]==3){echo "checked";}?>/>我对现有工作还算满意，如有更好的工作机会，我也可以考虑（到岗时间另议） <br />
<input type="radio" value="4" name="p_status" <?php if($p_row[p_status]==4){echo "checked";}?>/>应届毕业生<br />
<input type="radio" value="5" name="p_status" <?php if($p_row[p_status]==5){echo "checked";}?>/>目前暂无跳槽打算 </td>
        </tr>
      <tr>
        <td height="28" align="right" ><span class="StarRed">*</span> 简历是否公开</td>
        <td height="28" >
		<select id="isopen" name="isopen">
          <option value="1" <?php if($p_row[p_isopen]==1){echo "selected";}?>>是</option>
          <option value="2" <?php if($p_row[p_isopen]==2){echo "selected";}?>>否</option>
        </select></td>
        </tr>
    </tbody>
  </table>
  <input type="hidden" name="act" value="sandib2b.cn" />
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
    <tbody>
      <tr>
        <td colspan="3" align="center" ><br />
<input type="Submit" class="inputbutt1" value="下一步"/><br /></td>
      </tr>
    </tbody>
  </table>
</div></form></div>
<?php include("../inc/foot.php"); ?>

</body>
</html>
<script>
function $(id){
return document.getElementById(id);
}
function multipleSelectOnSubmit(){
  for(var no=0;no<arrayOfItemsToSelect.length;no++){
   var obj = arrayOfItemsToSelect[no];
   for(var no2=0;no2<obj.options.length;no2++){
    obj.options[no2].selected = true;
   }
  }

if($("p_name").value==""){
alert("姓名不能为空");
$("p_name").focus();
return false;
}

var resualt=false;
for(var i=0;i<document.form1.p_sex.length;i++)
{
    if(document.form1.p_sex[i].checked)
    {
      resualt=true;
    }
}
if(!resualt)
{
    alert("性别不能为空");
	return false;
}

var resualt2=false;
for(var i=0;i<document.form1.p_married.length;i++)
{
    if(document.form1.p_married[i].checked)
    {
      resualt2=true;
    }
}
if(!resualt2)
{
    alert("婚姻状况");
	return false;
}


if($("c_provinces").value==""){
alert("现居住地不能为空");
$("c_provinces").focus();
return false;
}
if($("c_city").value==""){
alert("现居住地不能为空");
$("c_city").focus();
return false;
}
if($("p_address").value==""){
alert("住址不能为空");
$("p_address").focus();
return false;
}
if($("p_phone").value==""){
alert("移动电话不能为空");
$("p_phone").focus();
return false;
}
if($("p_comment").value==""){
alert("自我评价不能为空");
$("p_comment").focus();
return false;
}

var resualt3=false;
for(var i=0;i<document.form1.p_nature.length;i++)
{
    if(document.form1.p_nature[i].checked)
    {
      resualt3=true;
    }
}
if(!resualt3)
{
    alert("请期望工作性质");
	return false;
}

if($("c_provinces4").value==""){
alert("省不能为空");
$("c_provinces4").focus();
return false;
}

if($("c_city4").value==""){
alert("城市不能为空");
$("c_city4").focus();
return false;
}


if($("toBox").value==""){
alert("期望工作行业不能为空");
$("toBox").focus();
return false;
}
if($("toBox2").value==""){
alert("期望工作职位不能为空");
$("toBox2").focus();
return false;
}

var resualt4=false;
for(var i=0;i<document.form1.p_status.length;i++)
{
    if(document.form1.p_status[i].checked)
    {
      resualt4=true;
    }
}
if(!resualt4)
{
    alert("当前工作状况");
	return false;
}

}
</script>